package com.onecar.carplatform.jtt.handler.base;

import com.onecar.carplatform.common.protocol.basics.JtHeader;
import com.onecar.carplatform.common.protocol.basics.JtMessage;

/**
 * @Author : ljq
 * @Description :
 * @Date : 2021/8/25 11:11
 * @Version : 1.0
 */
public abstract class JttMsgHandlerBase implements JttMsgHandlerInterface {
    protected JtHeader getRespHandler(JtMessage jtMessage) {
        JtHeader header = new JtHeader();
        header.setVersion(jtMessage.getHeader().getVersion());
        header.setSubcontract(false);
        header.setTerminalPhone(jtMessage.getHeader().getTerminalPhone());
        header.setMsgSerialNumber(999);
        return header;
    }
}
